@extends('layouts.index')

@section('content')

<div class="flex items-center">
    <div class="ml-4 text-lg leading-7 font-semibold">
        <a href="/questions/create">添加试题</a>
    </div>
</div>

<div class="ml-12">
    <div>{{ \Session::get('message')}}</div>
    <div class="mt-2 text-gray-600 dark:text-gray-400 text-sm">
        <form action="/questions" method="POST">
            @csrf
            <textarea autofocus name="content" style="border: 1px solid #ddd;width: 700px;" rows="20">{{\Session::get('content')}}</textarea>
            <button type="submit">保存</button>
        </form>
    </div>
</div>

@stop